<?php
/*
 * Page management
 */
class Admin_InitJavascriptController extends H_Controller_Admin_Action
{
    public function init()
    {
        parent::init();    
        $this->_helper->layout()->disablelayout();		
        $viewRenderer = $this->_helper->getHelper('viewRenderer');
        $viewRenderer->setView($this->view)->setViewSuffix('js');
        $this->_response->setHeader('Content-type', 'text/javascript; charset=utf-8');
        
    }
    public function indexAction(){       
       //$this->_forward('index', 'page');
        $lg = new H_Model_Lang();        
        $this->view->weblang = Zend_Json::encode($lg->fetchAll()->toArray(),  Zend_Json::TYPE_ARRAY);
        $this->_helper->viewRenderer->setViewScriptPathSpec("/initjavascript/initjavascript.js");
    }
    public function putAction() {
    }
    public function postAction() {
    }
    public function  getAction() {
    }
    public function  deleteAction() {        
    }
    public function  listAction() {
    }
    
    
}


